package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;
import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 品牌分类关联
 * 
 * @author zhuzhu
 * @email 838759460@qq.com
 * @date 2024-04-28 23:03:02
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {
    /**
     * 该方法主要是用于按id更新了分类表，那么该分类的名字可能也被更新了,那么为了保持数据的一致性
     * 需要更新涉及到存在冗余字段的表pms_category_brand_relation
     * @param category
     */
    void updateDetails(CategoryEntity category);
}
